package com.example.demo.mapper;

import com.example.demo.model.User;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

@Mapper
public interface UserMapper {

    public User login(@Param("username") String username,@Param("password") String password);

    public User getUserById(@Param("userId") Integer userId);

    public int reg(@Param("username") String username,@Param("password") String password);
}
